package com.lizhenhua.fmmall.controller;

import com.lizhenhua.fmmall.service.serviceImpl.UserServiceImpl;
import com.lizhenhua.fmmall.vo.ResultVo;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/goods")
@Api(value = "提供商品增删改的操作", tags = "商品管理")
public class GoodsController {
    @Autowired
    UserServiceImpl userService;

    @RequestMapping("/login")
    public ResultVo login(String userName, String pwd) {

        return userService.checkLogin(userName, pwd);
    }
}
